package com.demo3;

public class Computer {
    private String hardDrive;
    private String memory;

    public Computer() {
    }

    public Computer(String hardDrive, String memory) {
        this.hardDrive = hardDrive;
        this.memory = memory;
    }

    public String getHardDrive() {
        return hardDrive;
    }

    public void setHardDrive(String hardDrive) {
        this.hardDrive = hardDrive;
    }

    public String getMemory() {
        return memory;
    }

    public void setMemory(String memory) {
        this.memory = memory;
    }

    public void runCode(){
        System.out.println("电脑运行代码");
    }
}
